package com.springboot.training.designpatterns.decorator;

public class Moon implements AnyThing {

    private AnyThing a;
    public Moon(AnyThing a) {
        this.a = a;
    }
    @Override
    public void exe() {
        System.out.print(" 明月装饰了 ");
        a.exe();
    }
}
